.traffic-prediction {
  width: 500px;
  height: 560px;
  position: relative;
  overflow: hidden;

  &.no-responsive-scale {
    transform: none !important;
  }
  .status-bar{
    padding: 20px;
  }
  .traffic-prediction-content {
    width: 500px;
    height: 503px;
    background: linear-gradient(
      180deg,
      #14191F 0%,
      #3C4249 100%
    ),
    linear-gradient(
      178deg,
      rgba(9, 11, 13, 0) 0%,
      #26394D 100%
    ),
    radial-gradient(
      185% 43% at 53% -3%,
      rgba(166, 213, 255, 0.5) 0%,
      rgba(166, 209, 255, 0) 24%,
      rgba(179, 212, 255, 0) 100%
    );
    border: 0px solid rgba(77, 89, 102, 0.25);
    border-radius: 8px;
    // padding: 20px;
    display: flex;
    flex-direction: column;
    // gap: 20px;
    .half-hour-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 20px 20px 0 20px;
      // gap: 15px;
    }
    .bitmap-section {
      width: 457px;
      height: 80px;
      background: rgba(20, 25, 31, 0.8);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto;
  
      .inbound-outbound {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 30px;
  
        .inbound,
        .outbound {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 5px;
  
          .count {
            font-size: 24px;
            font-weight: bold;
            color: #ffffff;
          }
  
          .label {
            font-size: 14px;
            color: #ffffff;
          }
  
          .people {
            font-size: 12px;
            color: #cccccc;
          }
        }
  
        .center-label {
          font-size: 12px;
          color: #cccccc;
          padding: 0 20px;
        }
      }
    }
    
  .forty-eight-hour-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 0px 20px;
  }
  }


  .density-section {
    flex: 1;
    // min-height: 120px;
  }



  .legend {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;

    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #ffffff;

      .legend-color {
        width: 12px;
        height: 3px;
        border-radius: 2px;

        &.blue {
          background-color: #4A90E2;
        }

        &.green {
          background-color: #7ED321;
        }

        &.orange {
          background-color: #F5A623;
        }

        &.purple {
          background-color: #9013FE;
        }
      }
    }
    .chart-section {
      flex: 1;
      height: 200px;
      // min-height: 200px;
    }
  }


}

// 响应式设计
@media (max-width: 768px) {
  .traffic-prediction {
    .traffic-prediction-content {
      width: 100%;
      height: auto;
      min-height: 503px;
      padding: 15px;
    }

    .bitmap-section {
      width: 100%;
      max-width: 457px;
    }
  }
} 